import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

const Vue = createApp(App)

//axios
Vue.config.globalProperties.$axios = axios.create({
    baseURL: process.env.VUE_APP_BASE,
    headers: { 'Content-Type': 'application/json' },
})
Vue.config.globalProperties.$axios.defaults.timeout = 500

Vue.config.globalProperties.$baseUrl = process.env.VUE_APP_BASE

Vue.use(store).use(router)
Vue.use(ElementPlus)
Vue.mount('#app')
